<?php

namespace App\Models;


class Address extends BaseModel
{
    protected $table = 'address';

    protected $fillable = [
        'user_id',
        'name',
        'phone',
        'address',
        'status',
    ];

    public static function updateAllStatus($user_id)
    {
        self::where('user_id', $user_id)->update(['status' => 0]);
    }
}
